<div id="content">  


    <div class="response">
        <span class="warning">
            <div style="margin-bottom:10px">
                You're about to permanently delete this product Application. 
            </div>
            <a class="button" href="<?=site_url('admin/applications/confirm_removal/'.$item["id"])?>">CONFIRM DELETION</a>
            <a class="button" href="<?=site_url('admin/applications')?>">CANCEL</a>
        </span>
    </div>   


    <div class="preview">   

    <h1><?=$item["title"]?></h1>

    <div class="sansserif">Below is a complete list of our products suitable for <?=$item["title"]?></div>

    <? foreach ($grouped_products AS $cat){ ?>

        <div class="headercontain">
            <p><?=$cat["name"]?></p>
        </div>

    <? //show products or subcategories
    if (!empty($cat["items"])) { 

        $i=1;
        foreach($cat["items"] as $product){ 
        ?>

            <? if (is_int(($i+2)/3)){ ?>
                <div class="summarycontainer">
            <? } ?> 
            
                <div class="contain<? if (is_int($i/3)) echo 'right'?>">
                <? $this->load->view('admin/previews/product_item_list', array("item" => $product))?>
                </div>                 

            <? if ( (is_int($i/3)) || ($i==count($cat["items"])) ){ ?>
                </div>
            <? } ?> 
        <? 
            $i++;
        } 
    } 
    ?>                                                        

    <? } ?>

</div>

</div>